package tech.aistar.mapper;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;
import tech.aistar.entity.Level;

@Repository
public interface LevelMapper {
    @Select("select * from level where us_id = '${uid}'")
    Level findUserlevel(String uid);

    @Insert("insert into level(us_id) values('${uid}')")
    int insertUserlevel(String uid);
    @Select("select level_ulevel from level where us_id= '#{uid}'")
    Integer findlevel(Integer uid);
}
